package com.engine.core.gen;

import com.engine.core.util.QueryUtil;
import com.engine.core.util.Utils;

import java.util.Map;

public class ParamOption {
    private boolean isUrlEncode;

    public ParamOption(Map<String, Object> params) {
         String isUrlEncode= Utils.nullDefault((String)params.get(QueryUtil.QUERY_PARAMS_URLENCODE),"1");
         this.isUrlEncode=isUrlEncode.equalsIgnoreCase("1");
    }

    public ParamOption() {
    }

    public boolean isUrlEncode() {
        return isUrlEncode;
    }

    public void setUrlEncode(boolean urlEncode) {
        isUrlEncode = urlEncode;
    }
}
